package egs;

class Super{
	void method(){
		System.out.println("Super method ! ");
	}
}
class Sub extends Super{
	void method(){
		System.out.println("Sub class method !");
	}
}


public class runtimePoly extends Sub {

	void method(){
		System.out.println(" main class !! ");
	}
	public static void main(String[] args) {
		Super obj=new runtimePoly();
	obj.method();
	}

}


